/* 
 * Author: Alexander Rauser, arauser.org
 * Date: August 2008
 * Copyright: 2008
 * Licensed under Creative Commons Attribution 3.0 Unported
 */
 
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

/// <summary>
/// Very simple static logging class to track exceptions.
/// </summary>
public static class Log
{

    public static void Write(string message)
    {
        System.IO.StreamWriter sr = new System.IO.StreamWriter(System.Web.HttpContext.Current.Server.MapPath("upload.log"), true);
        sr.WriteLine(message);
        sr.Close();
    }
}
